import { Entity, Column, PrimaryGeneratedColumn } from "typeorm";

@Entity("user")
export class UserModel {
  @PrimaryGeneratedColumn()
  id: number;

  @Column({ unique: true })
  username: string;

  @Column()
  password: string;

  @Column({ default: "user" })
  role: string; // admin / user
}
